<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="structure" /></title>
</head>
<body>
    <h1><fmt:message key="structure" /></h1>
    <table>
        <tbody>
            
            <tr>
                <th><fmt:message key="structure_structuretype" /></th>
                <td>
                    <c:out value="${structure.structureTypeName}"/>                
				</td>
                <th><fmt:message key="structure_enableReview" /></th>
                <td>
					<c:out value="${not empty structure.reviewInterval}" />
					<a href="#">Reset Review Date</a>
				</td>

            </tr>

			<tr>
                <th><fmt:message key="structure_name" /></th>
                <td>
                    <c:out value="${structure.name}"/>               
				</td>
                <th><fmt:message key="structure_reviewInterval" /></th>
                <td>
                    <c:out value="${structure.reviewInterval}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="structure_description" /></th>
                <td>
                    <c:out value="${structure.description}"/>                
				</td>
                <th><fmt:message key="structure_reviewerRole" /></th>
                <td>
                    <c:out value="${structure.reviewerRole}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="structure_velocityVarName" /></th>
                <td>
                    <c:out value="${structure.velocityVarName}"/>                
				</td>
                <th><fmt:message key="structure_pageDetail" /></th>
                <td>
                    <c:out value="${structure.pageDetail}"/>               
				</td>
            </tr>
            <tr>
                <th><fmt:message key="structure_inode" /></th>
                <td>
                    <c:out value="${structure.inode}"/>                
				</td>

                <th><fmt:message key="structure_urlMapPattern" /></th>
                <td>
                    <c:out value="${structure.urlMapPattern}"/>               
				</td>
            </tr>

        </tbody>
        <tfoot>
            <tr>
                <td colspan="4">
                    <div class="buttons">
                        <c:url var="updateUrl" value="/domain/structure/updateForm.action">
                            <c:param name="structure.inode" value="${structure.inode}"/>
                        </c:url>
                        <a href="${updateUrl}"><span><fmt:message key="label.link.update"/></span></a>
                        <c:url var="confirmDeleteUrl" value="/domain/structure/confirmDelete.action">
                            <c:param name="structure.inode" value="${structure.inode}"/>
                        </c:url>
                        <a id="confirmDeleteUrl" href="${confirmDeleteUrl}"><span><fmt:message key="label.link.delete"/></span></a>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.AjaxEventDecoration({
                                elementId: "confirmDeleteUrl",
                                event: "onclick",
                                popup: "true",
                                params: { decorator: "none" }
                            }));
                        </script>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
    <h2><fmt:message key="label.related.content"/></h2>
    <c:url var="searchUrl1" value="/domain/field/createForm">
        <c:param name="field.structureInode" value="${structure.inode}"/>
    </c:url>
    <div class="buttons">
		<a href="${searchUrl1}"><span><fmt:message key="label.search.for.linked"/> field</span></a>
	</div>

	<jsp:include page="/WEB-INF/views/domain/field/searchResult.jsp" flush="true">
		<jsp:param name="includeBody" value="true" />
	</jsp:include>
	
</body>
